package com.charger.PromoteOperations.controller;

import com.charger.PromoteOperations.domain.Roleofgift;
import com.charger.PromoteOperations.service.RoleofgiftService;
import com.charger.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName RoleofgiftController
 * @Description TOOO
 * @Author Lilysi
 * @Date 2024//11//25//15:17
 * @Version 1.0
 */
@RestController
@RequestMapping("/Roleofgift")
public class RoleofgiftController {
    @Autowired
    private RoleofgiftService roleofgiftService;

    @GetMapping("/getAll")
    public AjaxResult getAll() {
        List<Roleofgift> list = roleofgiftService.list();
        return AjaxResult.success(list);
    }
}
